package com.lazyfish.superdir.service;

import com.lazyfish.superdir.dao.WordInfoDao;
import com.lazyfish.superdir.entity.WordInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WordInfoServiceImpl implements WordInfoService{
    @Autowired
    WordInfoDao wordInfoDao;
    public int getTotal() {
        return wordInfoDao.getTotal();
    }

    public WordInfo getWordInfo(int i) {
        return wordInfoDao.getWordInfo(i);
    }

    public List<WordInfo> getWordInfoByName(String name) {
        return wordInfoDao.getWordInfoByName(name);
    }
    public WordInfo getWordInfo2(int i) {
        return wordInfoDao.getWordInfo(i);
    }
}
